
package com.lxd.pattern.singleton.lazy;

public class LazyOne {

    private LazyOne(){}

    private static LazyOne INSTANCE = null;

    public static LazyOne getInstance(){

        if(INSTANCE == null){
            INSTANCE = new LazyOne();
        }
        System.out.println(INSTANCE);
        return INSTANCE;

    }

}
